package com.scs.application.modules.price.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 *
 * </p>
 *
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "调价库存表")
@TableName("price_adjust_stock")
public class AdjustStock extends DataEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "标题",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String name;

    @EntityFieldAnnotation(
            text = "外键，调价单明细主表ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String adjustDtlId;

    @EntityFieldAnnotation(
            text = "外键，调价单主表ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String adjustId;

    @EntityFieldAnnotation(
            text = "外键，调价涉及的STOCK_ID",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String stockId;

    @EntityFieldAnnotation(
            text = "调价数量",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Double qtyAdjust;

    @EntityFieldAnnotation(
            text = "调价前单价",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Double skuPriceBefore;

    @EntityFieldAnnotation(
            text = "调价后单价",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Double skuPriceAfter;

    @EntityFieldAnnotation(
            text = "单品单价调价价格",
            length = "",
            not_null = false,
            default_value = "",
            comment = "skuPriceBefore-skuPriceAfter"
    )
    private Double skuPriceChange;

    @EntityFieldAnnotation(
            text = "入库价调价金额",
            length = "",
            not_null = false,
            default_value = "",
            comment = "skuPriceChange*qtyAdjust"
    )
    private Double amountAdjustSp;

    @EntityFieldAnnotation(
            text = "",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String sn;

    @EntityFieldAnnotation(
            text = "销售价调价金额",
            length = "",
            not_null = false,
            default_value = "",
            comment = "price_adjustment_item.his_price_change * wm_stock.sku_qty"
    )
    private Double amountAdjustPatient;

    @EntityFieldAnnotation(
            text = "备注",
            length = "200",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String remark;


    // creator ,在父类中处理


    // gmt_create ,在父类中处理


    // modifier ,在父类中处理

}
